import _fetch from './request'

//企业列表
function busList(params) {
    return _fetch({
        url:'/enterprise/list',
        params
    })
}

//新增
function add(data) {
    return _fetch({
        url:'/enterprise/add',
        method:'post',
        data
    })
}
 
//状态设置
function setStatus(data) {
    return _fetch({
        url:'/enterprise/status',
        method:'post',
        data
    })
}

//编辑
function editBus(data) {
    return _fetch({
        url:'/enterprise/edit',
        method:'post',
        data
    })
}

//删除
function removeBus(data) {
    return _fetch({
        url:'/enterprise/remove',
        method:'post',
        data
    })
}
export {busList,add,setStatus,editBus,removeBus}